#include<iostream>
#include<queue>
#include<vector>
using namespace std;
priority_queue<int,vector<int>,greater<int> >q;
int main()
{
	q.push(1);
	q.push(3);
	q.push(190);
	for (int i = 0; i < 3; i++) {
		cout << q.top() << ' ';
		q.pop();
	}
	return 0;
}